import Vue from 'vue'

let vm = new Vue({
    el:'#app',
    data(){
        return {
            title:'学生管理系统',
            classNum:1,
            total:1,
            teacher:['张三'],
            stu:[
                {
                    name:'小明',
                    age:18,
                    sex:'男',
                    id:1
                }
            ],
            info:{
                a:1,
                b:2,
                c:[1,2,3]
            }
        }
    }
})

console.log(vm.stu.push({id:3,name:'小红',age:19,sex:'女'}))
vm.stu[1].name='李四'
